package cn.wx.read.tool.generator;

public class Factory {

	private final static String dbUrl = "39.105.19.0:3306";
    private final static String db="scholar-release";
    private final static String dbUserName="root";
    private final static String dbPassword="My123$ql";
    
    /**
     * 生成需替换的东西
     */
    private final static String packageName = "core";    //文件路径
    private final static String authorName = " ";     //作者
    private final static String table = "scholar_org";                  //table名字
    private final static String prefix = "scholar_";                     //table前缀       //table前缀
    
    public static boolean genCreate(String tablex,String prefix_){
    	try{
    		Generator.gen(dbUrl,db,dbUserName,dbPassword,packageName, authorName, tablex, prefix_);
    	}catch (Exception e) {
			
		}
    	return true;
    }
    
	public static void main(String[] args) {
		Generator.gen(dbUrl,db,dbUserName,dbPassword,packageName, authorName, table, prefix);
	}

}
